﻿namespace AnyOffice.Model
{
    using System;

    public class NewsCommentData
    {
        protected int _commentId = -1;
        protected object _content;
        protected int _newsId;
        protected DateTime _replyTime = DateTime.Now;
        protected string _userId = string.Empty;

        public int CommentId
        {
            get
            {
                return this._commentId;
            }
            set
            {
                this._commentId = value;
            }
        }

        public string Content
        {
            get
            {
                return (string) this._content;
            }
            set
            {
                this._content = value;
            }
        }

        public bool ContentIsNull
        {
            get
            {
                return (this._content == null);
            }
            set
            {
                if (value)
                {
                    this._content = null;
                }
            }
        }

        public int NewsId
        {
            get
            {
                return this._newsId;
            }
            set
            {
                this._newsId = value;
            }
        }

        public DateTime ReplyTime
        {
            get
            {
                return this._replyTime;
            }
            set
            {
                this._replyTime = value;
            }
        }

        public string UserId
        {
            get
            {
                return this._userId;
            }
            set
            {
                this._userId = value;
            }
        }
    }
}

